﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MpSoft.Web.AdminCP.ToolsBar
{
    public partial class SelectImages : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public string ShowImage { set { hdshowImage.Value = value; } get { return hdshowImage.Value; } }
        public string Images { set { hdImages.Value = value; } get { return hdImages.Value; } }
        public bool StateEdit { set; get; }

        private DataTable TableImage(string images)
        {
            if (string.IsNullOrEmpty(images))
                return null;
            DataTable tb = new DataTable();
            tb.Columns.Add("Image");
            string[] listImage = images.Split('@');
            if (listImage.Length < 1)
                return null;
            foreach (var x in listImage)
                tb.Rows.Add(x);
            return tb;
        }
    }
}